package cn.wolfcode.web.controller;


import cn.wolfcode.domain.Employee;
import cn.wolfcode.query.JSONResult;
import cn.wolfcode.service.IEmployeeService;
import cn.wolfcode.service.impl.EmployeeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/emp")

public class LoginController {
    @Autowired
    private IEmployeeService employeeService;
    @RequestMapping("/login")
    @ResponseBody
    public JSONResult login(String username,String password)
    {

            Employee employee = employeeService.login(username,password);
            return new JSONResult();


    }
}
